import request from '@/utils/request'

export function launchInterrogation(data) {
  return request({
    url: '/websocket/send/launchInterrogation',
    method: 'post',
    data
  })
}

export function historyInterrogation(param){
  return request({
    url: '/websocket/send/historyInterrogation/'+param,
    method: 'get',
  })
}
//添加问诊记录表
export function addPatientDiagnosisRecordOption(data){
  return request({
    url: '/websocket/patientRecord/add',
    method: 'post',
    data: data
  })
}
//修改问诊记录表
export function updatePatientDiagnosisRecordOption(data) {
  return request({
    url: '/websocket/patientRecord/update',
    method: 'post',
    data: data
  })
}
export function selectAllByQueryAndVague(data){
  return request({
    url: '/es/es/selectAllByQueryAndVague',
    method: 'post',
    data: data
  })
}

export function searchDoctorByDisease(data){
  return request({
    url: '/doctor/doctor/searchDoctor/'+data,
    method: 'get'
  })
}
//patientRecord/listByUserId

export function searchDoctorListByUserId(data){
  return request({
    url: '/websocket/patientRecord/listByUserId',
    method: 'get'
  })
}
